home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * Assertion.h
- *
- ****************************************************************************/
-
- #ifndef __ASSERTION__
- #define __ASSERTION__
-
- #define __USEASSERTIONS__ TRUE
-
- // ------------------------------------------------------------------------------
-
- #define kAssertAlways 0
- #define kAssertNever 1
-
- // ------------------------------------------------------------------------------
-
- #if __USEASSERTIONS__
- void DoAssert (Boolean condition, char *message);
- #define Assert(condition, message) DoAssert((condition), (message))
- #else
- #define Assert(condition, message) ((void)0)
- #endif
-
- // ------------------------------------------------------------------------------
-
- #endif
-